package com.chare.Controller;


import com.chare.pojo.Menu;
import com.chare.service.IMenuService;
import com.chare.service.impl.MenuServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shi
 * @since 2022-06-17
 */
@RestController
@RequestMapping("/system/cfg")

public class MenuController {
    @Autowired
    private IMenuService menuService;
@GetMapping("/menu")
@ApiOperation("通过与用户id查询菜单列表")
    public List<Menu> getMenusByAdminId()
{
    return menuService.getMenuByAdminName();
}
}
